import React from 'react';
import { Button } from 'antd';
interface Greeting {
    name: string;
    firstName: string;
    lastName: string;
}

// 函数组件
const Hello = (props: Greeting) => <Button>Hello {props.name} 楚凤沛</Button>

Hello.defaultProps = {
    firstName: "",
    lastName: ""
}

// const Hello: React.FC<Greeting> = ({
//     name,
//     firstName,
//     lastName
// }) => <Button>Hello {name} 楚凤沛</Button>

export default Hello;
